package cn.edu.ustc.xrovers.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table
public class CashFlowStatement {

	private Integer id;
	private int year;
	private double ocf;//经营活动产生的现金流量
	private double oci;//经营活动现金流入小计
	private double oco;//经营活动现金流出小计
	private double noc;//经营现金净流量
	private double icf;//投资活动产生的现金流量
	private double ici;//投资活动现金流入小计
	private double ico;//投资活动现金流出小计
	private double fcf;//筹资活动产生的现金流量
	private double fci;//筹资活动现金流入小计
	private double fco;//筹资活动现金流出小计
	private Company company;
	
	@ManyToOne
	@JoinColumn(name="Company_Id")
	public Company getCompany() {
		return company;
	}
	@Column(name="Cas_FinancingCashFlow")
	public double getFcf() {
		return fcf;
	}
	@Column(name="Cas_FinancingCashInflow")
	public double getFci() {
		return fci;
	}
	@Column(name="Cas_FinancingCashOutflow")
	public double getFco() {
		return fco;
	}
	@Column(name="Cas_InvestingCashFlow")
	public double getIcf() {
		return icf;
	}
	@Column(name="Cas_InvestingCashInflow")
	public double getIci() {
		return ici;
	}
	@Column(name="Cas_InvestingCashOutflow")
	public double getIco() {
		return ico;
	}
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}
	@Column(name="Cas_NetOperatingCashFlow")
	public double getNoc() {
		return noc;
	}
	@Column(name="Cas_OperatingCashInflow")
	public double getOci() {
		return oci;
	}
	@Column(name="Cas_OperatingCashFlow")
	public double getOcf() {
		return ocf;
	}
	@Column(name="Cas_OperatingCashOutflow")
	public double getOco() {
		return oco;
	}
	
	@Column(name="Cas_Year")
	public int getYear() {
		return year;
	}
	/*set方法*/
	public void setCompany(Company company) {
		this.company = company;
	}
	public void setFcf(double fcf) {
		this.fcf = fcf;
	}
	public void setFci(double fci) {
		this.fci = fci;
	}
	public void setFco(double fco) {
		this.fco = fco;
	}
	public void setIcf(double icf) {
		this.icf = icf;
	}
	public void setIci(double ici) {
		this.ici = ici;
	}
	public void setIco(double ico) {
		this.ico = ico;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public void setNoc(double noc) {
		this.noc = noc;
	}
	public void setOci(double oci) {
		this.oci = oci;
	}
	public void setOcf(double ocf) {
		this.ocf = ocf;
	}
	public void setOco(double oco) {
		this.oco = oco;
	}
	public void setYear(int year) {
		this.year = year;
	}
	
}
